package com.hdoit.apollo.logical.purchase.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.purchase.model.PurchaseCollocation;
import com.hdoit.apollo.logical.purchase.model.PurchaseCollocationStat;
import com.hdoit.apollo.logical.viewmodel.purchase.PurchaseCollocationSearch;
import com.tennetcn.data.dao.base.IMapper;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月23日 11:00:34
 * @comment
 */
@Repository(value="purchaseCollocationMapper")
public interface PurchaseCollocationMapper extends IMapper<PurchaseCollocation>{

	public PurchaseCollocationStat queryStat(@Param("search") PurchaseCollocationSearch search);

	public List<PurchaseCollocation> getListByIds(@Param("purchaseCollocationIds") String[] purchaseCollocationIds);

	public PurchaseCollocation queryModelById(@Param("purchaseCollocationId") String purchaseCollocationId);

	public List<PurchaseCollocation> queryListByPurchaseId(@Param("purchaseId") String purchaseId);

	public PurchaseCollocation queryModelByCollocationId(@Param("collocationId") String collocationId,@Param("purchaseId") String purchaseId);

	public PurchaseCollocationStat queryPurchaseStat(@Param("search")PurchaseCollocationSearch search);


}